import request from '@/utils/request'

// 查询药品量管理列表
export function listDrug_warehouse_stock(query) {
  return request({
    url: '/warehouse/drug_warehouse_stock/list',
    method: 'get',
    params: query
  })
}

// 查询药品量管理详细
export function getDrug_warehouse_stock(stockId) {
  return request({
    url: '/warehouse/drug_warehouse_stock/' + stockId,
    method: 'get'
  })
}

// 新增药品量管理
export function addDrug_warehouse_stock(data) {
  return request({
    url: '/warehouse/drug_warehouse_stock',
    method: 'post',
    data: data
  })
}

// 修改药品量管理
export function updateDrug_warehouse_stock(data) {
  return request({
    url: '/warehouse/drug_warehouse_stock',
    method: 'put',
    data: data
  })
}

// 删除药品量管理
export function delDrug_warehouse_stock(stockId) {
  return request({
    url: '/warehouse/drug_warehouse_stock/' + stockId,
    method: 'delete'
  })
}
